﻿<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="WinDbg 内核调试设置,驱动调试,内核调试" />
<meta name="filter" content="Windows C/C++" />
<meta name="path" content="/Windows/C++/驱动开发" />
<meta name="location" content="驱动开发" />
<meta name="author" content="xia xiangjun" />
<title>Windows 内核调试设置</title>
</head>
<body>
<h3>Windows 内核调试设置</h3>
<br>
<p>1.在目标机中更改 boot.ini 文件在其后加上如下代码</p>
<p><font color="red"><strong>&nbsp;&nbsp;/debug /debugport=com1 /baudrate=115200</strong></font></p>
<p>2. 在Windbg里选择&quot;<font color="red"><em><strong>Kernel Debug</strong></em></font>&quot;选项</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;Baud Rate:<strong> 115200</strong></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;Port: <strong>\\.\pipe\com_1</strong></p>
<p>&nbsp;&nbsp;&nbsp;<strong>&nbsp;</strong>Pipe:<strong> [true]</strong></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;Reconnect:<strong> [true]</strong></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;Resets: <strong>0</strong></p>
<p>3. 在VM里建立一个&quot;Serial Port&quot;串口, 配置如下</p>
<p>&nbsp;<strong>&nbsp;</strong>Use named pipe: <strong>[true]</strong></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<strong>\\.\pipe\com_1</strong></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<strong>This end is the server</strong></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<strong>The other end is a virtual machine.</strong></p>
</body>
</html>
